package com.zhidisoft.crm.util;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.springframework.util.StringUtils;

public class DateUtil {
	public static String parseStr(Date date, String format) {
		if (StringUtils.isEmpty(format)) {
			format = "yyyy-MM-dd hh:mm:hh";
		}
		SimpleDateFormat formatter = new SimpleDateFormat(format);
		return formatter.format(date);
	}

}
